<%--
  Created by IntelliJ IDEA.
  User: adminthy
  Date: 2018/6/16
  Time: 21:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@page isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML>
<html>
<head>
    <title>欢迎注册EasyMall</title>
    <meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" href="css/regist.css"/>
    <style>
        .error-msg{
            color: red;
        }
    </style>
</head>
<body>
<form action="${app}/RegistServlet" method="POST">
    <h1>欢迎注册EasyMall</h1>
    <table>
        <c:if test="${ not empty requestScope.all}">
            <tr>
                <td class="tds" colspan="2">
                    <span class="error-msg">${requestScope.errorMsg.all[0]}</span>

                </td>
            </tr>
        </c:if>
        <tr>
            <td class="tds">用户名：</td>
            <td>
                <input type="text" name="username" value="${param.username}"/>
                <span class="error-msg">${requestScope.errorMsg.username[0]}</span>
            </td>
        </tr>
        <tr>
            <td class="tds">密码：</td>
            <td>
                <input type="password" name="password"/>
                <span class="error-msg">${requestScope.errorMsg.password[0]}</span>
            </td>
        </tr>
        <tr>
            <td class="tds">确认密码：</td>
            <td>
                <input type="password" name="password2"/>
            </td>
        </tr>
        <tr>
            <td class="tds">昵称：</td>
            <td>
                <input type="text" name="nickname" value="${param.nickname}"/>
                <span class="error-msg">${requestScope.errorMsg.nickname[0]}</span>
            </td>
        </tr>
        <tr>
            <td class="tds">邮箱：</td>
            <td>
                <input type="text" name="email" value="${param.email}"/>
                <span class="error-msg">${requestScope.errorMsg.email[0]}</span>
            </td>
        </tr>
        <tr>
            <td class="tds">验证码：</td>
            <td>
                <input type="text" name="valistr"/>
                <img src="img/regist/yzm.jpg" width="" height="" alt="" />
                <span class="error-msg">${requestScope.errorMsg.valistr[0]}</span>
            </td>
        </tr>
        <tr>
            <td class="sub_td" colspan="2" class="tds">
                <input type="submit" value="注册用户"/>
            </td>
        </tr>
    </table>
</form>
</body>
</html>

